import request from '@/utils/request';
import {type productionBom,type MaterialNeedData,type AddMaterialNeedInPut,type MaterialNeedShowData,type ProductionTaskHead } from './type'

export function GetProductionBow(data:productionBom){
    return request({
        url:'/ProductionData/GetProducts',
        method:'post',
        data
    })
}
export function GetMaterialNeedById(data:MaterialNeedData){
    return request({
        url:'ProductionData/MaterialNeedByIdList',
        method:'post',
        data
    })
}
export function AddMaterialNeed(data:AddMaterialNeedInPut){
    return request({
        url:'/ProductionData/AddMaterialNeed',
        method:'post',
        data
    })
}
export function MaterialNeedShow(data:MaterialNeedShowData){
    return request({
        url:'/ProductionData/MaterialNeedShow',
        method:'post',
        data
    })
}

export function AddProductionTaskHead(data:ProductionTaskHead){
    return request({
        url:'/ProductionData/AddProductiveTask',
        method:'post',
        data
    })
}

export function GetProductiveTask(){
    return request({
        url:'/ProductionData/GetProductiveTask',
        method:'get'
    })
}

